<div class="form">
    <?php /* @var $form CActiveForm */ ?>
    <?php
    /* @var $form CActiveForm */

    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'category-form',
        'enableAjaxValidation' => false,
        'enableClientValidation' => true,
        'clientOptions' => array(
            'validateOnSubmit' => true,
        ),
    ));
    ?>
    <p class="note">Fields with <span class="required">*</span> are required.</p>
    <?php
    echo $form->errorSummary($category);
    ?>

    <table style="color:#555555; width: auto;">
        <tr>
            <td><?php echo $form->labelEx($category, 'English name (*)') ?></td>
            <td><?php echo $form->textField($category, "name_en", array('size' => 40, 'title' => 'Type English name')) ?></td>
            <td> <?php echo $form->error($category, "name_en"); ?></td>
        </tr>  
        <tr>
            <td><?php echo $form->labelEx($category, 'Vietnamese name (*)') ?></td>
            <td><?php echo $form->textField($category, "name_vi", array('size' => 40, 'title' => 'Type Vietnamese name')) ?></td>
            <td> <?php echo $form->error($category, "name_vi"); ?></td>
        </tr>
        <tr>
            <td><?php echo $form->labelEx($category, 'Type ') ?></td>
            <td><?php echo $form->textField($category, "type", array('size' => 40, 'title' => 'Type')) ?></td>
            <td> <?php echo $form->error($category, "type"); ?></td>
        </tr>
        <tr>
            <td></td>
            <td>
                <div class="row submit">
                    <?php echo CHtml::submitButton($category->isNewRecord ? 'Create' : 'Save'); ?>
                </div>
            </td>
        </tr>
    </table>
    <?php $this->endWidget(); ?>
</div><!-- form -->